if isFolder
  p.
    Running this will retrieve a task listing from a Girder worker extension.
    A new item will be created for each task, each of which will contain the
    task specification in its metadata.  These items can then be run as tasks
    via the worker.
  .form-group
    label Girder worker extension
    select.form-control.g-worker-extension
      for extension in extensions
        option(value=extension) #{extension}
else
  p.
    Running this will retrieve the task specification from a decorated python function
    This item's metadata will be updated to contain the task specification. This item
    can then be run as a task via the worker.
  .form-group
    label Function import path
    input.g-celery-import-path.form-control.input-sm(name="celery-import-path", value=currentModulePath)

if !isFolder
  .checkbox
    label
      input.g-configure-celery-use-name(type="checkbox", checked=true)
      | Update the name of this item from the task name
  .checkbox
    label
      input.g-configure-celery-use-description(type="checkbox", checked=true)
      | Update the description of this item from the task description
